<template>
  <div>
      <div class="top">
            <div>222</div>
            <img src="../../assets/Fill 1@2.88x.png" alt="">
      </div>

<van-tabs @disabled="onClickDisabled">
  <van-tab title="售卖中 " >
      <div class="liupi">
          <img src="../../assets/2222222.png" alt="">
          <p>暂无商品售出</p>
      </div>
  </van-tab>
  <van-tab title="未上榜" >
            <div class="liupi"   v-if="shujuall.length == 0">
          <img src="../../assets/2222222.png" alt="">
          <p>暂无未上榜</p>
      </div>

      <div class="ingliang" v-for="(item,index) in shujuall" :key="index" v-else>
<div class="ing-all">
        <img :src="item.goodsMasterMap" alt="">
        <div class="ing-text-all">
            <p>{{item.goodsName}}</p>
            <div class="ing-text">
                <p>{{item.specificationName}}</p>
                <div>{{item.zeroConvert}}</div>
            </div>
                <span>{{item.shopPrice}}/包</span>
        </div>
</div>
<div class="yidong">···</div>
      </div>


  </van-tab>
  <van-tab title="筛选" disabled>内容 3</van-tab>
</van-tabs>

  </div>
</template>

<script>
import qs from 'qs'
import { Tab, Tabs } from 'vant'
export default {
    data(){
        return{
            shujuall:"",
        }
    },
   methods:{
           onClickDisabled(index, title) {
             
    },
              postnick(){
                  this.$http.post('https://web-gateway.newbeescm.com/ms-web/shopGoods/listForAdmin',qs.stringify({
                            shopId:this.$store.state.maitextall.id,
                            storeId:this.$store.state.order.storeId,
                            goodsType:"",
                            status:0,
                            salesCategoryId:"",
                            currentPage:1,
                            pageSize:10,
                            sortType:5,
                  }),{
                            headers: {
              token: this.$store.state.token,
              userId: this.$store.state.userInfo.id
            }      
                  }).then(res => {
                      console.log(res)
                      this.shujuall = res.data.result
          console.log(res.data.result);
       //   this.$router.go(-1);
        })
              }
   },mounted(){
       this.postnick();
   }
    
}

</script>
<style lang="scss" scoped>
.liupi{
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f1f2f3;
    height: 100%;
    position: fixed;
    width: 100%;
   img{
       height: 1rem;
       width: 1rem;
       margin: 0.8rem 0 0 0rem;
          }
          p{
              margin-top: 0.2rem;
              font-size: 0.12rem;
              color: #74787c;
          }
}
.ingliang{
    padding: 0.1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .yidong{
        margin-right: 0.14rem;
    }
}
.ing-all{
    display: flex;
   // align-items: center;
    img{
        margin: 0 0.1rem;
        width: 0.8rem;
        height: 0.8rem;
    }
    .ing-text-all{
        font-size: 0.14rem;
       // width: 0.8rem;
        height: 0.8rem;
        span{
            color: red;
        }
        .ing-text{
            display: flex;
            font-size: 0.12rem;
            color: rgb(136, 130, 130);
            align-items: center;
            margin-bottom:0.1rem; 
          //  flex-direction: column;
            div{
                margin-left: 0.2rem;
                display: flex;
            }
        }
    }
}
   .top{
       display: flex;
       align-items: center;
       div{
           margin-left: 0.14rem;
           font-size: 0.13rem;
       }
       img{
           width: 0.05rem;
           height: 0.1rem;
           transform: rotate(180deg);
           margin-left: 0.14rem;
       }
       height: 0.3rem;
      // background: red;
   }
</style>
